﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Project_2._2.Models;
using Project_2._2.ViewModels;
using PagedList;
using PagedList.Mvc;


namespace Project_2._2.Controllers
{
    public class CarsController : Controller
    {
        //
        // GET: /Cars/

        private QuanLyThueXeEntities db = new QuanLyThueXeEntities();
        public ActionResult Default(int? page)
        {
            var fb = (from p in db.Xes where p.isDelete == false select p).ToList();
            return View(fb.ToList().ToPagedList(page ?? 1, 7));
        }

        public ActionResult Insert() 
        {
            return View();
        }

    }
}
